/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦]
 * 
 * https://zhiqim.org/project/zhiqim_components/zhiqim_manager.htm
 *
 * Zhiqim Manager is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package org.zhiqim.manager.dbo;

import java.io.Serializable;
import java.sql.Timestamp;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 操作员日志表 对应表《ZMR_OPERATOR_LOG》
 */
@AnAlias("ZmrOperatorLog")
@AnNew
@AnTable(table="ZMR_OPERATOR_LOG", key="", type="InnoDB")
@AnIndex({@AnIndexValue(name="IX_ZMR_OPERATOR_LOG_TIME", column="OPERATE_TIME", unique=false)})
public class ZmrOperatorLog implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableField(column="OPERATOR_CODE", type="string,32", notNull=true)    private String operatorCode;    //1.操作员编码
    @AnTableField(column="OPERATE_TIME", type="datetime", notNull=true)    private Timestamp operateTime;    //2.操作时间,格式：yyyy-MM-dd hh:mm:ss
    @AnTableField(column="OPERATE_IP", type="string,15", notNull=true)    private String operateIp;    //3.操作IP地址
    @AnTableField(column="OPERATE_FEATURE", type="string,50", notNull=true)    private String operateFeature;    //4.操作功能
    @AnTableField(column="OPERATE_DESC", type="string,2000", notNull=false)    private String operateDesc;    //5.操作描述

    public String toString()
    {
        return Jsons.toString(this);
    }

    public String getOperatorCode()
    {
        return operatorCode;
    }

    public void setOperatorCode(String operatorCode)
    {
        this.operatorCode = operatorCode;
    }

    public Timestamp getOperateTime()
    {
        return operateTime;
    }

    public void setOperateTime(Timestamp operateTime)
    {
        this.operateTime = operateTime;
    }

    public String getOperateIp()
    {
        return operateIp;
    }

    public void setOperateIp(String operateIp)
    {
        this.operateIp = operateIp;
    }

    public String getOperateFeature()
    {
        return operateFeature;
    }

    public void setOperateFeature(String operateFeature)
    {
        this.operateFeature = operateFeature;
    }

    public String getOperateDesc()
    {
        return operateDesc;
    }

    public void setOperateDesc(String operateDesc)
    {
        this.operateDesc = operateDesc;
    }

}
